package com.ftdigital.primemovers_operators.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Curry on 2015-12-27.
 */
public class OilHistroryEntity extends Entity{


    /**
     * flag : true
     * msg : 成功
     * data : [{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":66,"date":"2016-01-20 09:55:29","gasstation_name":"大唐一站","total_price":264},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":44,"date":"2016-01-19 11:01:41","gasstation_name":"大唐一站","total_price":176},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":33.3,"date":"2016-01-18 14:42:37","gasstation_name":"大唐一站","total_price":133.2},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":33,"date":"2016-01-18 13:32:37","gasstation_name":"大唐一站","total_price":132},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":33,"date":"2016-01-18 11:36:26","gasstation_name":"大唐一站","total_price":132},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":100,"date":"2016-01-18 11:24:07","gasstation_name":"大唐一站","total_price":400},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":33,"date":"2016-01-18 11:11:44","gasstation_name":"大唐一站","total_price":132},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":55.5,"date":"2016-01-18 11:04:01","gasstation_name":"大唐一站","total_price":222},{"car_num":"京AB1111","convention_price":4,"company_name":"瞬风物流","qty":55.5,"date":"2016-01-06 16:14:40","gasstation_name":"大唐一站","total_price":222}]
     */

    private boolean flag;
    private String msg;

    private List<HistoryData> data = new ArrayList<>();

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(List<HistoryData> data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public String getMsg() {
        return msg;
    }

    public List<HistoryData> getData() {
        return data;
    }

//    public static class DataEn  {
//        /**
//         * car_num : 京AB1111
//         * convention_price : 4
//         * company_name : 瞬风物流
//         * qty : 66
//         * date : 2016-01-20 09:55:29
//         * gasstation_name : 大唐一站
//         * total_price : 264
//         */
//        private String car_num;
//        private int convention_price;
//        private String company_name;
//        private int qty;
//        private String date;
//        private String gasstation_name;
//        private int total_price;
//
//        public void setCar_num(String car_num) {
//            this.car_num = car_num;
//        }
//
//        public void setConvention_price(int convention_price) {
//            this.convention_price = convention_price;
//        }
//
//        public void setCompany_name(String company_name) {
//            this.company_name = company_name;
//        }
//
//        public void setQty(int qty) {
//            this.qty = qty;
//        }
//
//        public void setDate(String date) {
//            this.date = date;
//        }
//
//        public void setGasstation_name(String gasstation_name) {
//            this.gasstation_name = gasstation_name;
//        }
//
//        public void setTotal_price(int total_price) {
//            this.total_price = total_price;
//        }
//
//        public String getCar_num() {
//            return car_num;
//        }
//
//        public int getConvention_price() {
//            return convention_price;
//        }
//
//        public String getCompany_name() {
//            return company_name;
//        }
//
//        public int getQty() {
//            return qty;
//        }
//
//        public String getDate() {
//            return date;
//        }
//
//        public String getGasstation_name() {
//            return gasstation_name;
//        }
//
//        public int getTotal_price() {
//            return total_price;
//        }
//    }
}
